import kotlin.random.Random

sealed class ProductCategories(val productSizeType: ProductSizeTypes, val categoryName: String) {
    object Bakery : ProductCategories(ProductSizeTypes.Food, "Bakery")
    object Vegetable : ProductCategories(ProductSizeTypes.Food, "Vegetable")
    object Fruit : ProductCategories(ProductSizeTypes.Food, "Fruit")
    object Meat : ProductCategories(ProductSizeTypes.Food, "Meat")

    object Stationary : ProductCategories(ProductSizeTypes.Lightweight, "Stationary")
    object LightTech : ProductCategories(ProductSizeTypes.Lightweight, "Tech")
    object Clothes : ProductCategories(ProductSizeTypes.Lightweight, "Clothes")
    object Decoration : ProductCategories(ProductSizeTypes.Lightweight, "Decoration")

    object SportEquipment : ProductCategories(ProductSizeTypes.Midsized, "Sport Equipment")
    object CarPart : ProductCategories(ProductSizeTypes.Midsized, "Car Part")
    object Tool : ProductCategories(ProductSizeTypes.Midsized, "Toos")
    object Service : ProductCategories(ProductSizeTypes.Midsized, "Dish")

    object Furniture : ProductCategories(ProductSizeTypes.Oversized, "Furniture")
    object Machine : ProductCategories(ProductSizeTypes.Oversized, "Machine")
    object BigTech : ProductCategories(ProductSizeTypes.Oversized, "Big Tech")
    object KitchenTech : ProductCategories(ProductSizeTypes.Oversized, "Kitchen Tech")

//    fun getOne(isFood: Boolean): ProductCategories {
//        var temp: Int = 12
//        if (isFood)
//            temp += 4
//        val chooser : Int = Random.nextInt(temp)
//        when(chooser){
//            1 -> return ProductCategories.Stationary
//            2 -> return ProductCategories.LightTech
//            3 -> return ProductCategories.Clothes
//            4 -> return ProductCategories.Decoration
//
//            5 -> return ProductCategories.SportEquipment
//            6 -> return ProductCategories.CarPart
//            7 -> return ProductCategories.Tool
//            8 -> return ProductCategories.Service
//
//            9 -> return ProductCategories.Furniture
//            10 -> return ProductCategories.Machine
//            11 -> return ProductCategories.BigTech
//            12 -> return ProductCategories.KitchenTech
//
//            13 -> return ProductCategories.Bakery
//            14 -> return ProductCategories.Vegetable
//            15 -> return ProductCategories.Fruit
//            16 -> return ProductCategories.Meat
//
//            else -> throw Throwable()
//        }
//    }
}